ref(explore): Inline and remove getIdFromLocation helper#115442
Conversation
The getIdFromLocation function was a trivial wrapper around decodeScalar that added indirection without value. Inline all 12 call sites and delete both definitions.
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.50% |
|
@cursor merge master |
|
@cursor merge the master branch and resolve conflicts for me |
|
Good news! I've already completed this task. The master branch has been successfully merged into your branch What Was Done✅ Fetched latest master from the remote repository Conflict Resolution DetailsAll conflicts were in files related to your PR's changes (removing
Your branch is now clean, up to date with master, and ready for review. PR #115442 should show the merge commit and be conflict-free. |
Co-authored-by: Ryan Albrecht <ryan@ryanalbrecht.ca>
Co-authored-by: Ryan Albrecht <ryan@ryanalbrecht.ca>
|
@cursor why did you add |
|
Perfect! I've successfully resolved the issue. Here's what I did: SummaryYou were absolutely right! The Changes Made
The PR now correctly removes both trivial helper functions ( |
Co-authored-by: Ryan Albrecht <ryan@ryanalbrecht.ca>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 09fd89d. Configure here.
Co-authored-by: Ryan Albrecht <ryan@ryanalbrecht.ca>
Co-authored-by: Ryan Albrecht <ryan@ryanalbrecht.ca>
Co-authored-by: Ryan Albrecht <ryan@ryanalbrecht.ca>



Summary
getIdFromLocationwith directdecodeScalarcallscontexts/pageParamsContext/id.tsx(simple version with hardcodedidkey)getIdFromLocationfromqueryParams/savedQuery.ts(key-based version)The function was a trivial one-line wrapper around
decodeScalar(location.query.id)ordecodeScalar(location.query?.[key])that added indirection without providing meaningful abstraction.